package durak.common.model;

import java.io.Serializable;

public class CommonPlayerData implements Serializable {

	protected boolean isPlaying;
	protected String name;
	protected int loses;
	protected boolean isLeftTheGame;
	protected int numOfCardsInHand;
	
	/**
	 * @return the isLeftTheGame
	 */
	public boolean isLeftTheGame() {
		return isLeftTheGame;
	}

	/**
	 * @param isLeftTheGame the isLeftTheGame to set
	 */
	public void setLeftTheGame(boolean isLeftTheGame) {
		this.isLeftTheGame = isLeftTheGame;
	}

	/**
	 * @return the loses
	 */
	public int getLoses() {
		return loses;
	}

	/**
	 * @param loses the loses to set
	 */
	public void setLoses(int loses) {
		this.loses = loses;
	}

	/**
	 * @param isPlaying
	 * @param name
	 * @param type
	 */
	public CommonPlayerData(boolean isPlaying, String name, int loses, int numOfCardsInHand) {
		this.isPlaying = isPlaying;
		this.name = name;
		this.loses= loses;
		this.numOfCardsInHand = numOfCardsInHand;
	}

	public CommonPlayerData() {
		this.isPlaying = true;
		this.loses= 0;
	}

	public boolean isPlaying() {
		return isPlaying;
	}

	public void setPlaying(boolean isPlaying) {
		this.isPlaying = isPlaying;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the numOfCardsInHand
	 */
	public int getNumOfCardsInHand() {
		return numOfCardsInHand;
	}

	/**
	 * @param numOfCardsInHand the numOfCardsInHand to set
	 */
	public void setNumOfCardsInHand(int numOfCardsInHand) {
		this.numOfCardsInHand = numOfCardsInHand;
	}

}
